
package com.probiz.estore.customer.dao;

import com.probiz.estore.common.model.customer.ValidationSession;
import com.probiz.estore.core.dao.GenericDao;

/**
 * ValidationSession Data Access Object (DAO) interface. Developer introduced
 * interfaces should be declared here. Won't get overwritten.
 */
public interface ValidationSessionDao extends GenericDao<ValidationSession> {
	/**
	 * check the url is still valid now by email and current datetime.
	 * 
	 * @param email
	 * @param url
	 * @param type
	 * @return
	 */
	public boolean isUrlValid(String email, String url, Short type);

	/**
	 * check this url is still validate
	 * 
	 * @param url
	 * @param type
	 * @return
	 */
	public boolean isUrlValid(String url, Short type);

	/**
	 * get by url and type
	 * 
	 * @param url
	 * @param type
	 * @return
	 */
	public ValidationSession getByUrlType(String url, Short type);
}
